package com.smart.campus.school.mapper;

import java.util.List;
import com.smart.campus.school.domain.AttendanceGroupUser;
import org.springframework.stereotype.Repository;

/**
 * 考勤组人员Mapper接口
 * 
 * @author Zhihe.Li
 * @date 2020-10-21
 */
@Repository
public interface AttendanceGroupUserMapper 
{
    /**
     * 查询考勤组人员
     * 
     * @param id 考勤组人员ID
     * @return 考勤组人员
     */
    public AttendanceGroupUser selectAttendanceGroupUserById(Long id);

    /**
     * 查询考勤组人员列表
     * 
     * @param attendanceGroupUser 考勤组人员
     * @return 考勤组人员集合
     */
    public List<AttendanceGroupUser> selectAttendanceGroupUserList(AttendanceGroupUser attendanceGroupUser);

    /**
     * 新增考勤组人员
     * 
     * @param attendanceGroupUser 考勤组人员
     * @return 结果
     */
    public int insertAttendanceGroupUser(AttendanceGroupUser attendanceGroupUser);

    /**
     * 修改考勤组人员
     * 
     * @param attendanceGroupUser 考勤组人员
     * @return 结果
     */
    public int updateAttendanceGroupUser(AttendanceGroupUser attendanceGroupUser);

    /**
     * 删除考勤组人员
     * 
     * @param id 考勤组人员ID
     * @return 结果
     */
    public int deleteAttendanceGroupUserById(Long id);

    /**
     * 批量删除考勤组人员
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAttendanceGroupUserByIds(String[] ids);


    /**
     * 根据人员ID查询考勤组人员关系
     * @param userId
     * @return
     */
    public AttendanceGroupUser  selectAttendanceGroupUserByUserId(Long userId);

    List<AttendanceGroupUser> selectAttendanceGroupUserListByUserIdList(List<Long> studentIdList);

}
